package com.db.patterns.server.listener;

import com.db.patterns.cache.server.listener.AbstractCacheListener;
import com.db.patterns.protocol.Protocol;
import com.db.patterns.transport.Transport;

/**
 * @author nulls.narik
 */
public class ServerListener extends AbstractCacheListener {

    private final Protocol protocol;
    private final Transport transport;

    public ServerListener(Transport transport, Protocol protocol) {
        this.transport = transport;
        this.protocol = protocol;
    }

    @Override
    protected Protocol getProtocol() {
        return protocol;
    }

    @Override
    protected Transport getTransport() {
        return transport;
    }

}
